Skip to content

[cherry-pick: release-v0.26.x] Remove symlinks - due to ko-build update#1746

Merged
tekton-robot merged 1 commit into
release-v0.26.xfrom
cherry-pick-1738-to-release-v0.26.x
Jul 3, 2026
Merged

[cherry-pick: release-v0.26.x] Remove symlinks - due to ko-build update#1746
tekton-robot merged 1 commit into
release-v0.26.xfrom
cherry-pick-1738-to-release-v0.26.x

Conversation

@tekton-robot

Copy link
Copy Markdown

This is a cherry-pick of #1738


Changes

Summary

ko v0.19.1 introduced a security restriction that rejects symlinks in kodata
that resolve outside the kodata root directory. This broke all e2e tests in CI
since setup-ko installs the latest release.

The cmd/controller/kodata/ directory contained symlinks to ../../.git/HEAD
and ../../.git/refs which are no longer used — knative.dev/pkg/changeset
now uses debug.ReadBuildInfo() to get VCS info at runtime instead of reading
from kodata.

Changes

  • Remove cmd/controller/kodata/HEAD symlink (unused)
  • Remove cmd/controller/kodata/refs symlink (unused)
  • Replace cmd/controller/kodata/LICENSE symlink with a real file copy

logs from the failing tests:
2026-06-30T10:47:58.1714887Z Error: error processing import paths in "config/100-deployment.yaml": error resolving image references: tarring kodata: kodata symlink "/home/runner/work/chains/chains/cmd/controller/kodata/HEAD" resolves to "/home/runner/work/chains/chains/.git/HEAD" which is outside the kodata root "/home/runner/work/chains/chains/cmd/controller/kodata" 2026-06-30T10:47:58.1740223Z ERROR: Tekton Chains installation failed 2026-06-30T10:47:58.1742404Z *** E2E TEST FAILED ***

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 2, 2026
@enarha

enarha commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2026
@jkhelil

jkhelil commented Jul 3, 2026

Copy link
Copy Markdown
Member

/approve

@tekton-robot

Copy link
Copy Markdown
Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkhelil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 3, 2026
@tekton-robot tekton-robot merged commit cec078d into release-v0.26.x Jul 3, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants